import Layout from '@/layout'

const add =  {
    path: "/add",
    component: Layout,
    redirect: "/user/add",
    name: 'user',
    meta: {
      title: '新增管理',
      icon: 'add'
    },
    children: [
      {
        path: 'user/add',
        component: () => import('@/views/user/add'),
        name: '新增用户',
        meta: { title: '新增用户', icon: 'addUser' }
      },
      {
        path: 'product/add',
        component: () => import('@/views/product/add'),
        name: '新增产品',
        meta: { title: '新增产品', icon: 'addProduct' }
      },
      {
        path: 'supplier/add',
        component: () => import('@/views/supplier/add'),
        name: '新增供应商',
        meta: { title: '新增供应商', icon: 'addSupplier' }
      },
      {
        path: 'store/add',
        component: () => import('@/views/store/add'),
        name: '新增仓库',
        meta: { title: '新增仓库', icon: 'addStore' }
      }
    ]
  }

  export default add
